package com.xnewtech.xplatform.swan.dataSourceManage.modular.modname.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (DmDsSource)实体类
 *
 * @author makejava
 * @since 2021-09-22 13:19:37
 */
@TableName("dm_ds_source")
public class DmDsSource implements Serializable {
    private static final long serialVersionUID = 199040984929577997L;
    /**
     * 数据源ID
     */
    @TableId(value = "ds_id", type = IdType.AUTO)
    private Long dsId;
    /**
     * 数据源类型
     */
    @TableField("dataType")
    private DmDsSourceEnum dataType;
    /**
     * 数据源名称
     */
    @TableField("dsName")
    private String dsName;
    /**
     * 数据源描述
     */
    @TableField("dsDescription")
    private String dsDescription;
    /**
     * 环境标识
     */
    @TableField("envType")
    private Integer envType;
    /**
     * 是否托管元数据
     */
    @TableField("manageMeta")
    private Integer manageMeta;
    /**
     * 管理模式
     */
    @TableField("manageStatus")
    private Integer manageStatus;
    /**
     * 数据源来源
     */
    @TableField("source")
    private Integer source;
    /**
     * 是否有效
     */
    @TableField("dsName")
    private Integer available;
    /**
     * 创建有效时间
     */
    @TableField("createTime")
    private Date createTime;
    /**
     * 创建人
     */
    @TableField("createUser")
    private Long createUser;
    /**
     * 更新时间
     */
    @TableField("updateTime")
    private Date updateTime;
    /**
     * 更新人
     */
    @TableField("updateUser")
    private Long updateUser;
    /**
     * 所属集群
     */
    @TableField("cluster")
    private String cluster;

    public DmDsSource(Long dsId, DmDsSourceEnum dataType, String dsName, String dsDescription, Integer envType, Integer manageMeta, Integer manageStatus, Integer source, Integer available, Date createTime, Long createUser, Date updateTime, Long updateUser, String cluster) {
        this.dsId = dsId;
        this.dataType = dataType;
        this.dsName = dsName;
        this.dsDescription = dsDescription;
        this.envType = envType;
        this.manageMeta = manageMeta;
        this.manageStatus = manageStatus;
        this.source = source;
        this.available = available;
        this.createTime = createTime;
        this.createUser = createUser;
        this.updateTime = updateTime;
        this.updateUser = updateUser;
        this.cluster = cluster;
    }

    public DmDsSource() {

    }

    public Long getDsId() {
        return dsId;
    }

    public void setDsId(Long dsId) {
        this.dsId = dsId;
    }

    public DmDsSourceEnum getDataType() {
        return dataType;
    }

    public void setDataType(DmDsSourceEnum dataType) {
        this.dataType = dataType;
    }

    public String getDsName() {
        return dsName;
    }

    public void setDsName(String dsName) {
        this.dsName = dsName;
    }

    public String getDsDescription() {
        return dsDescription;
    }

    public void setDsDescription(String dsDescription) {
        this.dsDescription = dsDescription;
    }

    public Integer getEnvType() {
        return envType;
    }

    public void setEnvType(Integer envType) {
        this.envType = envType;
    }

    public Integer getManageMeta() {
        return manageMeta;
    }

    public void setManageMeta(Integer manageMeta) {
        this.manageMeta = manageMeta;
    }

    public Integer getManageStatus() {
        return manageStatus;
    }

    public void setManageStatus(Integer manageStatus) {
        this.manageStatus = manageStatus;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getAvailable() {
        return available;
    }

    public void setAvailable(Integer available) {
        this.available = available;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public String getCluster() {
        return cluster;
    }

    public void setCluster(String cluster) {
        this.cluster = cluster;
    }

    @Override
    public String toString() {
        return "DmDsSource{" +
                "dsId=" + dsId +
                ", dataType=" + dataType +
                ", dsName='" + dsName + '\'' +
                ", dsDescription='" + dsDescription + '\'' +
                ", envType=" + envType +
                ", manageMeta=" + manageMeta +
                ", manageStatus=" + manageStatus +
                ", source=" + source +
                ", available=" + available +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", updateTime=" + updateTime +
                ", updateUser=" + updateUser +
                ", cluster='" + cluster + '\'' +
                '}';
    }
}

